home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Cursor Blink.xpl < prev    next >
Text File  |  1999-09-17  |  1KB  |  49 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\General\Effects"
  5. "NAME"="Cursor Blink Rate"
  6. "VERSION"="1.20"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Blink Rate"
  9. "DESCRIPTION 1"="The cursor in a text field has a specified blink rate. The default value is "500", the fastest blink rate is "1" and if it shouldn't blink, enter "65535"."
  10. "DESCRIPTION 2"="NOTE: Setting the variable less than 5 might make the cursor disappear on some systems.
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14.  
  15. 'Declaration of some constants
  16. sP="HKCU\Control Panel\Desktop\"
  17. sV1="CursorBlinkRate"
  18.  
  19. 'Called when the Plugin is started
  20. Sub Plugin_Initialize
  21.  i=RegReadValue(sp & sv1)
  22.  SetUIElement 1,i 
  23. End Sub
  24.  
  25. 'Called when the Plugin should validate the Data the user has entered
  26. Sub Plugin_CheckData(ElementIndex)
  27.  i=GetUIElement(1)
  28.  
  29.  if IsNumeric(i) then
  30.   if i<1 or i>65535 then
  31.    Call DataInvalid("Please enter a value between 1 and 65535!")
  32.   end if
  33.  else
  34.   Call DataInvalid("Please enter a value between 1 and 65535!")
  35.  end if
  36. End Sub
  37.  
  38. 'Called when the Plugin should apply the changes
  39. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  40.  i=GetUIElement(1)
  41.  Call RegWriteValue(sp & sv1,i,1)
  42.  
  43.  Call Restart
  44. End Sub
  45.  
  46. 'Called when the Plugin is about to be removed from memory
  47. Sub Plugin_Terminate
  48. End Sub
  49.